class MugshotsController < ApplicationController  
def new  
   @mugshot = Mugshot.new  
end  
def create  
   @mugshot = Mugshot.new(params[:mugshot])  
   if @mugshot.save  
     flash[:notice] = 'Mugshot was successfully created.'  
     redirect_to :action=>:show,:id=>@mugshot      
   else  
     render :action => :new  
   end  
end  
def show  
@mugshot = Mugshot.find(:first,:conditions=>{:id=>params[:id],:parent_id=>nil})  
@mugshot_thumb = Mugshot.find(:first,:conditions=>{:parent_id=>params[:id]})  
end 
end